//图片显示
function displayImage(obj) {
    var src = $(obj).attr("src");
    var imgHtml = '<div style="width: 100%;height: 100vh;overflow: auto;background: rgba(0,0,0,0.5);text-align: center;position: fixed;top: 0;left: 0;z-index: 1000;"><img src=' + src + ' style="margin-top:100px;width:70%;margin-bottom:100px;"/><p style="font-size: 50px;position: fixed;top: 30px;right: 30px;color: white;cursor: pointer;" onclick="closeImage(this)">×</p></div>';
    $('body').append(imgHtml);
}

//关闭显示
function closeImage(obj) {
    $(obj).parent("div").remove();
}
